/**
 * @Author : SL
 * @Date : 2019/5/29
 * @Version :1.0
 * @Last Modified by : SL
 * @Last Modified time : 2019/5/29
 **/
const http = require('http')

const server = http.createServer((req,res)=>{
    res.writeHead(200,{'content-type':'text/html'})
    res.end('<h1>hello world</h1>')
})

server.listen(3000,()=>{
    console.log('listening on 3000 port')
})